import Layout from '@/views/layout/frame/Layout.vue'

export default [
  // 外勤巡检管理
  {
    path: '/patrol',
    component: Layout,
    hidden: false,
    alwaysShow: true,
    name: 'patrol',
    meta: {
      title: '外勤巡检管理',
      icon: 'iconfont icon-xunjianguanli',
      roles: ['CUSTOMER_USER', 'TENANT_ADMIN', 'TENANT_SUPPORT']
    },
    children: [
      {
        path: 'task',
        name: 'patrolTask',
        meta: { title: '计划巡检任务', icon: 'iconfont icon-xunjianguanli' },
        component: () => import('@/views/patrolDeal/task.vue')
      },
      {
        path: 'current',
        name: 'patrolCurrent',
        meta: { title: '当天巡检任务', icon: 'iconfont icon-xunjianguanli' },
        component: () => import('@/views/patrolDeal/current.vue')
      },
      {
        path: 'history',
        name: 'patrolHistory',
        meta: { title: '历史巡检报表', icon: 'iconfont icon-xunjianguanli' },
        component: () => import('@/views/patrolDeal/history.vue')
      },
      {
        path: 'stepStore',
        name: 'patrolStepStore',
        meta: { title: '巡检标准库', icon: 'iconfont icon-xunjianguanli' },
        component: () => import('@/views/patrolDeal/stepStore.vue')
      }
    ]
  }
]
